export function debounce(callback: Function, time: number = 400) {
	let timer: any;

	return (...args: any) => {
		clearTimeout(timer)
		timer = setTimeout(() => {
			callback(...args)
		}, time)
	}
}


